<template>
  <div>
    <h1>{{$store.getters.showNum}}</h1>
    <h1>{{$store.state.token}}</h1>
    <button @click="change">change</button>
  </div>
</template>

<script>

export default {
  name: "component2",
  methods:{
    change(){
      this.$store.commit('change',"ssc")
    }
  },
}
</script>

<style scoped>

</style>
